# coding: utf-8
from enum import Enum
from .setting import IMAGES_DIR

from qfluentwidgets import FluentIconBase, Theme, getIconColor


class Icon(FluentIconBase, Enum):
    CLASS = 'Class'
    MIN_VIDEO = 'MinVideo'
    SELECT = "Select"
    SETTINGS = "Settings"
    SETTINGS_FILLED = "SettingsFilled"
    CLOUD_DOWNLOAD = "CloudDownload"
    CLOUD_DOWNLOAD_FILLED = "CloudDownloadFilled"

    def path(self, theme=Theme.AUTO):
        return (IMAGES_DIR / f"icons/{self.value}_{getIconColor(theme)}.svg").as_posix()


class SingleIcon(FluentIconBase, Enum):
    LOGO_PNG = 'logo.png'
    LOGO_ICO = 'logo.ico'
    VERTICAL_LINE = 'VerticalLine.svg'

    def path(self, theme=Theme.AUTO) -> str:
        return (IMAGES_DIR / 'single' / self.value).as_posix()
